package com.example.conference.mapper;

import com.example.conference.domain.CourseNature;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CourseNatureMapper {
    @Select("select * from courseNature where courseNature_id = #{courseNatureId}")
    CourseNature queryById(Integer courseNatureId);

    @Select("select * from courseNature")
    List<CourseNature> queryAll();
}
